#ifndef CONF_H
#define CONF_H
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <syslog.h>

#include <openssl/conf.h>
#define CONFFILE "/etc/banssh/banssh.conf"

extern char *PORT;
extern char *SERVER;
extern char *CLIENT;
extern char *CIPHER_LIST;
extern char *CAFILE;
extern char *CADIR;
extern char *CERTFILE;
extern char *SERVER_PORT;
extern char *SERVER_LOGL;
extern char *CLIENT_LOGL;
extern char *EXEPROG;
extern char *USER_WHITE_LIST;
extern char *HEARTBEAT_SLEEP;
extern char *HEARTBEAT_LFILE;

typedef struct
{
	char **sec;
	char **key;
	char **val;
	int argc;
} Conf_Buf;

Conf_Buf *get_config_info(const char *Params, const char *Sec_Name);
void prConf(Conf_Buf * c);
Conf_Buf *freeConf(Conf_Buf * c);
char *findConf(Conf_Buf * c, const char *s);
#endif /* CONF_H */
